package com.wxtwxt.ruralmall.order.feign;

import com.wxtwxt.ruralmall.common.to.StockTo;
import com.wxtwxt.ruralmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Wxt
 * @create 2023-04-30 21:54
 */
@FeignClient("ruralmall-ware")
public interface WareFeginService {
    @PostMapping("/ware/waresku/stockIsExist")
    List<StockTo> stockIsExist(@RequestBody List<Long> skuIds);

    @GetMapping("/ware/wareinfo/fare")
    R getFare(@RequestParam("addrId") Long addrId);
}
